23d512689eeecdb93face5d391203fdeecd557df,test/net/i2p/crypto/eddsa/math/PrecomputationTestVectors.java,PrecomputationTestVectors,getPrecomputation,#String#,18
Before Change
TestUtils.hexToBytes(ymxStr)));
line = file.readLine();
String xy2dStr = line.substring(6, line.indexOf('L'));
while (xy2dStr.length() < 64)
xy2dStr = "0" + xy2dStr;
FieldElement xy2d = curve.fromBigInteger(new BigInteger(
TestUtils.hexToBytes(xy2dStr)));
precmp[row][col] = GroupElement.precomp(curve,
ypx, ymx, xy2d);
}
After Change
Utils.hexToBytes(ymxStr));
line = file.readLine();
String xy2dStr = line.substring(4, line.lastIndexOf(' '));
FieldElement xy2d = field.fromByteArray(
Utils.hexToBytes(xy2dStr));
precmp[row][col] = GroupElement.precomp(curve,
ypx, ymx, xy2d);
}